<?php

class Bill extends \Phalcon\Mvc\Model
{

    /**
     *
     * @var integer
     * @Primary
     * @Identity
     * @Column(type="integer", length=11, nullable=false)
     */
    public $id;

    /**
     *
     * @var string
     * @Column(type="string", length=50, nullable=false)
     */
    public $union_id;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=false)
     */
    public $pid;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_a;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_b;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_c;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_d;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_e;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_f;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_g;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_h;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_i;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_j;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_k;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_l;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_m;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_n;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_o;

    /**
     *
     * @var string
     * @Column(type="string", length=255, nullable=true)
     */
    public $filed_p;

    /**
     * Allows to query a set of records that match the specified conditions
     *
     * @param mixed $parameters
     * @return Bill[]
     */
    public static function find($parameters = null)
    {
        return parent::find($parameters);
    }

    /**
     * Allows to query the first record that match the specified conditions
     *
     * @param mixed $parameters
     * @return Bill
     */
    public static function findFirst($parameters = null)
    {
        return parent::findFirst($parameters);
    }

    /**
     * Returns table name mapped in the model.
     *
     * @return string
     */
    public function getSource()
    {
        return 'bill';
    }

}
